* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Exo';
    src: url('../assets/fonts/Exo2-Medium.woff2') format('woff2'),
         url('../assets/fonts/Exo2-Medium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

body {
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    font-family: 'Exo', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    letter-spacing: 0.5px;
}

/* 游戏容器 */
.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    overflow: hidden;
}

/* 游戏画布 */
#gameCanvas {
    display: block;
    background: linear-gradient(135deg, #2d4a3e, #1e3a2a);
}

/* 游戏UI覆盖层 */
.game-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* 顶部状态栏 */
.top-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(23, 28, 42, 0.95), rgba(30, 39, 59, 0.9));
    padding: 15px 25px;
    border-radius: 15px;
    border: 2px solid #64ffda;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.game-title {
    font-size: 28px;
    font-weight: bold;
    color: #64ffda;
    text-shadow: 0 2px 8px rgba(100, 255, 218, 0.3);
}

.player-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.player-name {
    font-size: 18px;
    color: #e1f5fe;
    font-weight: bold;
}

.player-level {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* 左侧状态面板 */
.left-panel {
    position: absolute;
    left: 20px;
    top: 120px;
    width: 280px;
    pointer-events: auto;
}

.stat-bar {
    background: linear-gradient(135deg, rgba(23, 28, 42, 0.95), rgba(30, 39, 59, 0.9));
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.stat-label {
    display: block;
    color: #e1f5fe;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-container {
    position: relative;
    height: 20px;
    background: rgba(15, 20, 35, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.stat-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.health-fill {
    background: linear-gradient(90deg, #ff4d4d, #ff6b6b);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

.exp-fill {
    background: linear-gradient(90deg, #33ff33, #66ff66);
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
}

.mana-fill {
    background: linear-gradient(90deg, #4a90e2, #357abd);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.stat-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 属性面板 */
.attributes-panel {
    background: linear-gradient(135deg, rgba(23, 28, 42, 0.95), rgba(30, 39, 59, 0.9));
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.attribute-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #e1f5fe;
}

.attribute-item:last-child {
    margin-bottom: 0;
}

.attr-icon {
    margin-right: 8px;
    font-size: 16px;
}

.attr-label {
    flex: 1;
    font-size: 14px;
    color: #b0bec5;
}

.attr-value {
    font-weight: bold;
    color: #64ffda;
    font-size: 16px;
}

/* 右侧控制面板 */
.right-panel {
    position: absolute;
    right: 20px;
    top: 120px;
    width: 280px;
    pointer-events: auto;
}

.main-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.game-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: #ffffff;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.4);
    border: 2px solid transparent;
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.5);
    border-color: #64ffda;
    background: linear-gradient(135deg, #0096c7, #005577);
}

.game-button:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 20px;
}

.btn-text {
    flex: 1;
    text-align: left;
}

/* 快捷操作按钮 */
.quick-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.quick-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #666, #444);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quick-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #4a90e2, #357abd);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

/* 地图信息栏 */
.map-info-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(20, 30, 40, 0.9), rgba(0, 0, 0, 0.8));
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid rgba(74, 144, 226, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    min-width: 200px;
    z-index: 1000;
}

.map-info {
    color: #ffffff;
}

.map-name {
    font-size: 18px;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.map-level {
    font-size: 14px;
    color: #ffd700;
    margin-bottom: 5px;
    font-weight: 600;
}

.map-description {
    font-size: 12px;
    color: #cccccc;
    line-height: 1.4;
    opacity: 0.9;
}

/* 底部信息栏 */
.bottom-bar {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(23, 28, 42, 0.95), rgba(30, 39, 59, 0.9));
    padding: 12px 25px;
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.game-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    color: #b0bec5;
    font-size: 14px;
}

.stat-item span {
    color: #64ffda;
    font-weight: bold;
}

.controls-info {
    color: #cccccc;
    font-size: 12px;
}

/* 背包面板 */
#inventory-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(18, 23, 37, 0.98), rgba(25, 32, 48, 0.95));
    border-radius: 20px;
    color: #e1f5fe;
    width: 800px;
    height: 600px;
    overflow-y: auto;
    border: 2px solid #64ffda;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 200;
    pointer-events: auto;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
}

.inventory-header h2 {
    margin: 0;
    color: #4a90e2;
    font-size: 24px;
}

.close-btn {
    background: #ff4757;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.close-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.5);
}

#inventory-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 0 25px 25px;
}

.inventory-slot {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.3);
    aspect-ratio: 1;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #000;
    text-align: center;
    padding: 8px;
    transition: all 0.3s ease;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}

.inventory-slot:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-color: #4a90e2;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.inventory-slot.empty {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    color: #888;
    border-color: rgba(255, 255, 255, 0.2);
}

/* 技能面板 */
#skills-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(18, 23, 37, 0.98), rgba(25, 32, 48, 0.95));
    border-radius: 20px;
    color: #e1f5fe;
    width: 800px;
    height: 600px;
    overflow-y: auto;
    border: 2px solid #64ffda;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 200;
    pointer-events: auto;
}

/* 地图面板 */
#map-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(20, 30, 40, 0.98), rgba(0, 0, 0, 0.95));
    border-radius: 20px;
    color: white;
    width: 800px;
    height: 600px;
    overflow-y: auto;
    border: 2px solid #64ffda;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 200;
    pointer-events: auto;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
}

.map-header h2 {
    margin: 0;
    color: #4a90e2;
    font-size: 24px;
    font-weight: bold;
}

.map-content {
    padding: 0 25px 25px;
}

.current-map-info {
    margin-bottom: 25px;
}

.current-map-info h3 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 18px;
}

.current-map-card {
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid #64ffda;
    border-radius: 10px;
    padding: 15px;
}

.available-maps {
    margin-bottom: 25px;
}

.available-maps h3 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 18px;
}

.maps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.map-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-item:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: #4a90e2;
    transform: translateY(-2px);
}

.map-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.map-item.locked:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(74, 144, 226, 0.3);
}

.map-item-name {
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 5px;
}

.map-item-level {
    color: #ffd700;
    font-size: 14px;
    margin-bottom: 5px;
}

.map-item-description {
    color: #cccccc;
    font-size: 12px;
    line-height: 1.4;
}

.map-help {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.map-help h3 {
    color: #4a90e2;
    margin-bottom: 10px;
    font-size: 16px;
}

.map-help ul {
    margin: 0;
    padding-left: 20px;
}

.map-help li {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.skills-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
}

.skills-header h2 {
    margin: 0;
    color: #64ffda;
    font-size: 24px;
}

.skills-content {
    padding: 0 25px 25px;
}

.skills-list {
    margin-bottom: 30px;
}

.skills-list h3 {
    color: #4a90e2;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
    padding-bottom: 8px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
    transform: translateX(5px);
}

.skill-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.skill-info {
    flex: 1;
}

.skill-name {
    font-size: 18px;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 5px;
}

.skill-desc {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 8px;
}

.skill-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.skill-damage {
    color: #ff6b6b;
}

.skill-healing {
    color: #4CAF50;
}

.skill-mana {
    color: #4a90e2;
}

.skill-cooldown {
    color: #FF9800;
}

.skill-hotkey {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #ffffff;
}

.skills-help {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.skills-help h3 {
    color: #4a90e2;
    font-size: 16px;
    margin-bottom: 15px;
}

.skills-help ul {
    margin: 0;
    padding-left: 20px;
}

.skills-help li {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.skills-help strong {
    color: #ffffff;
}

/* 技能按钮样式 */
.skills-btn {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2) !important;
}

.skills-btn:hover {
    background: linear-gradient(135deg, #ab47bc, #8e24aa) !important;
}

/* 地图面板 */
#map-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(18, 23, 37, 0.98), rgba(25, 32, 48, 0.95));
    border-radius: 20px;
    color: #e1f5fe;
    width: 700px;
    max-height: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(74, 144, 226, 0.3);
    z-index: 1000;
    overflow: hidden;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
    background: rgba(74, 144, 226, 0.1);
}

.map-header h2 {
    margin: 0;
    color: #4a90e2;
    font-size: 24px;
}

.map-content {
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
}

.current-map-info,
.available-maps,
.map-help {
    margin-bottom: 25px;
}

.current-map-info h3,
.available-maps h3,
.map-help h3 {
    color: #4a90e2;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
    padding-bottom: 8px;
}

.current-map-card {
    background: rgba(74, 144, 226, 0.15);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.map-name {
    font-size: 18px;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 5px;
}

.map-level {
    color: #ffd700;
    margin-bottom: 5px;
}

.map-description {
    color: #cccccc;
    font-size: 14px;
}

.maps-list {
    display: grid;
    gap: 10px;
}

.map-item {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-item:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
}

.map-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.map-item.locked:hover {
    transform: none;
}

.map-item-name {
    font-size: 16px;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 5px;
}

.map-item-level {
    color: #ffd700;
    margin-bottom: 5px;
    font-size: 14px;
}

.map-item-description {
    color: #cccccc;
    font-size: 12px;
}

/* 角色界面面板 */
#character-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(18, 23, 37, 0.98), rgba(25, 32, 48, 0.95));
    border-radius: 20px;
    color: #e1f5fe;
    width: 700px;
    height: 600px;
    overflow-y: auto;
    border: 2px solid #64ffda;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 200;
    pointer-events: auto;
}

.character-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
}

.character-header h2 {
    margin: 0;
    color: #4a90e2;
    font-size: 24px;
}

.character-content {
    padding: 0 25px 25px;
}

/* 角色基本信息 */
.character-basic {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.character-avatar {
    position: relative;
    text-align: center;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}

.character-level {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.character-details {
    flex: 1;
}

.character-details h3 {
    margin: 0 0 15px 0;
    color: #4a90e2;
    font-size: 22px;
}

.char-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.char-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 18px;
}

.stat-label {
    color: #cccccc;
    font-size: 14px;
    min-width: 60px;
}

.stat-value {
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
}

/* 装备槽位 */
.equipment-slots {
    margin-bottom: 30px;
}

.equipment-slots h3 {
    color: #4a90e2;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
    padding-bottom: 8px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.equip-slot {
    background: rgba(74, 144, 226, 0.1);
    border: 2px dashed rgba(74, 144, 226, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.equip-slot:hover {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.2);
}

.slot-label {
    color: #cccccc;
    font-size: 12px;
    margin-bottom: 8px;
}

.slot-content {
    color: #4a90e2;
    font-weight: bold;
    font-size: 14px;
}

/* 详细属性 */
.character-attributes h3 {
    color: #4a90e2;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
    padding-bottom: 8px;
}

.attributes-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attr-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.attr-name {
    color: #cccccc;
    font-size: 14px;
    min-width: 100px;
}

.attr-value {
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    min-width: 50px;
    text-align: center;
}

.attr-bonus {
    color: #4a90e2;
    font-size: 14px;
    font-weight: bold;
}

/* 游戏说明 */
.game-instructions {
    position: fixed;
    bottom: 10px;
    left: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    border-left: 3px solid #4a90e2;
    max-width: 250px;
}

/* 通用样式 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .left-panel, .right-panel {
        width: 250px;
    }
    
    #inventory-panel, #character-panel, #skills-panel {
        width: 90vw;
        height: 80vh;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .left-panel, .right-panel {
        width: 200px;
    }
    
    .game-button {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .bottom-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes bar-glow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes slot-glow {
    0% { box-shadow: 0 0 10px rgba(74, 144, 226, 0.3); }
    50% { box-shadow: 0 0 20px rgba(74, 144, 226, 0.6); }
    100% { box-shadow: 0 0 10px rgba(74, 144, 226, 0.3); }
}

/* 自定义滚动条 */
#inventory-panel::-webkit-scrollbar,
#skills-panel::-webkit-scrollbar,
#character-panel::-webkit-scrollbar {
    width: 8px;
}

#inventory-panel::-webkit-scrollbar-track,
#skills-panel::-webkit-scrollbar-track,
#character-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#inventory-panel::-webkit-scrollbar-thumb,
#skills-panel::-webkit-scrollbar-thumb,
#character-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4a90e2, #357abd);
    border-radius: 4px;
}

#inventory-panel::-webkit-scrollbar-thumb:hover,
#skills-panel::-webkit-scrollbar-thumb:hover,
#character-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5ba0f2, #4a90e2);
}

/* 隐藏面板的样式 */
.hidden {
    display: none;
}

/* 显示面板的样式 */
.visible {
    display: block;
}

/* 强制显示样式 - 用于JavaScript控制 */
.force-show {
    display: block !important;
}

